//
//  JPColor.h
//  JPUtil
//
//  Created by Jpwang on 16/11/25.
//  Copyright © 2016年 Jpwang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIColor (extend)

/*参数如：＃FF00FF */
+ (UIColor *)colorWithHexString:(NSString *)color;

/*参数如：alpha：0.2   color：＃FF00FF */
+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha;

/*参数如：＃FF00FF */
UIColor *colorWithString(NSString *color);

/*参数如：alpha：0.2   color：＃FF00FF */
UIColor *colorWithARGB(CGFloat alpha, NSString *color);

@end
